home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / chichi.swf / scripts / frame_235 / PlaceObject2_12_548 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-26  |  645 b   |  25 lines

  1. onClipEvent(enterFrame){
  2.    if(this._y <= 481 and _parent.score > 1500 and _parent.life < 8)
  3.    {
  4.       this._y += 3;
  5.    }
  6.    else
  7.    {
  8.       this._x = random(28) * 10 + 10;
  9.       this._y = - random(300) - 1500;
  10.    }
  11.    if(this.hitTest(_parent.drag))
  12.    {
  13.       _global.kills = 0;
  14.       _parent.buzz.gotoAndPlay(1);
  15.       _parent.attachMovie("life_fade","fader2",110);
  16.       _parent.fader2._x = this._x;
  17.       _parent.fader2._y = this._y;
  18.       this._x = random(28) * 10 + 10;
  19.       this._y = - random(500) - 1500;
  20.       _parent.life += 1;
  21.       _parent.hrtcnt.nextFrame();
  22.       _parent.coralz.coral.nextFrame();
  23.    }
  24. }
  25.